package com.weiyuanstudio.nextstep.persistence.entity;

import com.weiyuanstudio.nextstep.util.AbstractSnowflakePersistable;
import jakarta.persistence.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Bangumi同步时请求中爬取的收藏信息
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class BangumiCollection extends AbstractSnowflakePersistable {
    private Long subjectId; //Bangumi ID
    private LocalDateTime updatedAt; //用户最后更新时间
    private String comment; //用户评论
    private Integer volStatus; //看到第几卷
    private Integer epStatus; //看到第几集
    private String type; //收藏状态
    private Integer rate; //用户打分
    //subject field
    private String name; //项目名
    private String nameCn; //项目中文名
    private Integer volumes; //总共几卷
    private Integer eps; //总共几集
    private String shortSummary; //短总结
    private String subjectType; //收藏条目的类型
    private LocalDate subjectDate; //项目发布日期
}
